﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="WMG005.aspx.cs" Inherits="View_WMG_WMG005" %>
<%@ Register src="../../Control/btnPrevious.ascx" tagname="btn" tagprefix="uc1" %>
<%@ Register src="../../Control/complexGrid1.ascx" tagname="complexGrid1" tagprefix="uc1" %>
<%@ Register src="../../Control/ucChart.ascx" tagname="chart" tagprefix="uc1" %>
<%@ Register src="../../Control/complexListBox.ascx" tagname="complexListBox" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <script type="text/javascript">
     $(function() {
         $("#radio").buttonset();
         $("input:radio").bind("click", radioClicks);

     });

     function radioClicks() {
         var btnChart = $("#<%=btn_Chart.ClientID %>");
         var rdo = $(this).val();
         if (rdo == "rdoTWD") {
             $("#CUR").hide();
             $("#saving").show();             
             btnChart.show();
         }
         if (rdo == "rdoCUR") {
             $("#CUR").show();
             $("#saving").hide();
             btnChart.hide();
         }
     }
    
	</script>
	<asp:HiddenField ID="hdnChart" runat="server"  />
    <div class="buttonOnHead_class">            
        <asp:Button ID="btn_Execute" runat="server" Text = "Execute" OnClick="btn_ExecuteClick" class="btn" />                
        <asp:Button ID="btn_Chart" runat="server" Text = "定存、定儲走勢圖" OnClick="btn_ChartClick" class="btn" />                
        <asp:Label ID="lblResult" runat="server" Text="" ForeColor="Red"></asp:Label>
    </div>
    
    <div class="criteria_class">
         <div id="radio" >
    	    <asp:RadioButton ID="rdoTWD" runat="server" GroupName="dateSeason" Text="台幣"  Checked="true" CssClass="rdoClass"  />
	        <asp:RadioButton ID="rdoCUR" runat="server" GroupName="dateSeason" Text="外幣"    CssClass="rdoClass" />	                    
	    </div>
        <div class="complexListBox">
                    <fieldset>
                        <legend><asp:Label ID="Label1" Text="查詢年月" runat="server"></asp:Label></legend>               
                        <asp:TextBox ID="txtYM" runat="server"></asp:TextBox>
                    </fieldset>                           
            </div>
             <div class="complexListBox" id="saving">
                 <fieldset>
                    <legend><asp:Label ID="Label2" Text="類別" runat="server"></asp:Label></legend>               
                    <asp:RadioButton ID="rdo1" runat="server" Text = "定存" GroupName="deposit" Checked="true"    />
                    <asp:RadioButton ID="rdo2" runat="server" Text = "定儲" GroupName="deposit" />            
                    <asp:RadioButton ID="rdo3" runat="server" Text = "定存+定儲" GroupName="deposit" />            
                </fieldset>                            
             </div>	    
	    <!--外幣--->
	    <div id="CUR" style="display:none;">
	        <uc1:complexlistbox ID="CLB_CUR" runat="server" Caption="幣別" 
            SetSelectionMode="Single" ShowCheckBox="false" />
	    </div>
         <div class="complexListBox">
            <asp:HyperLink ID="linkExcel" runat="server"></asp:HyperLink>    
         </div>
    </div>
    <div class="criteria_class">
        <uc1:chart id="chart1" runat="server" />
    </div>    
    <div class="criteria_class">
        <uc1:complexGrid1 ID="CLB_Summary" runat="server"                 
                Caption=""
                NumberCSS = "tdAlignRigth"
                StringCSS = "tdAlignCenter"
                ShowFirstButton = "false" 
                AllowPaging="false"                
                 />
    </div>
         

</asp:Content>

